<!doctype html>
<html lang="en" data-framework="knockoutjs">
  <head>
    <meta charset="utf-8">
<!--

    Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->

    <title>Helidon TodoMVC</title>
    <link rel="stylesheet" href="node_modules/todomvc-common/base.css">
    <link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
    <link rel="stylesheet" href="js/css/spinner.css">
    <meta name="google-signin-client_id" content="1048216952820-6a6ke9vrbjlhngbc0al0dkj9qs9tqbk2.apps.googleusercontent.com">
  </head>
  <body>
    <section id="todoapp" class="todoapp">
      <header class="header">
        <h1>todos</h1>
        <input class="new-todo" data-bind="value: current, valueUpdate: 'afterkeydown', enterKey: add"
               placeholder="What needs to be done?" autofocus>
      </header>
      <section class="main" data-bind="visible: todos().length">
        <input id="toggle-all" class="toggle-all" data-bind="checked: allCompleted" type="checkbox">
        <label for="toggle-all">Mark all as complete</label>
        <ul class="todo-list" data-bind="foreach: todos">
          <li data-bind="css: { completed: completed, editing: editing }">
            <div class="view">
              <input class="toggle" data-bind="checked: completed" type="checkbox">
              <label data-bind="text: title, event: { dblclick: $root.editItem }"></label>
              <button class="destroy" data-bind="click: $root.remove"></button>
            </div>
            <input class="edit"
                   data-bind="value: title, valueUpdate: 'afterkeydown', enterKey: $root.stopEditing, escapeKey: $root.cancelEditing, selectAndFocus: editing, event: { blur: $root.stopEditing }">
          </li>
        </ul>
      </section>
      <div data-bind="spinner: showSpinner"></div>
      <footer class="footer" data-bind="visible: completedCount() || remainingCount()">
				<span class="todo-count">
					<strong data-bind="text: remainingCount">0</strong>
					<span data-bind="text: getLabel(remainingCount)"></span> left
				</span>
        <button class="clear-completed" data-bind="visible: completedCount, click: removeCompleted">Clear completed</button>
      </footer>
    </section>
    <footer class="info">
      <p>Double-click to edit a todo</p>
      <p>Helidon implementation of <a href="http://todomvc.com">TodoMVC</a></p>
      <p>&nbsp;</p>
      <div class="g-signin2" data-onsuccess="onSignIn"
           -theme="light" data-width="110" data-height="35">button
      </div>
    </footer>
    <script src="node_modules/todomvc-common/base.js"></script>
    <script data-main="js/main" src="node_modules/requirejs/require.js"></script>
  </body>
</html>
